package com.doit.day01;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

public class ConnectRedis {
    public static void main(String[] args) {
        //直接创建redis对象
        Jedis jedis = new Jedis("linux01", 6379);

        //第二种  创建一个连接池
        JedisPool pool = new JedisPool("linux01", 6379);
        Jedis resource = pool.getResource();


    }
}
